package com.procurement.inquiry.mapper;

import com.procurement.inquiry.domain.PcmQuotationProduct;
import com.procurement.inquiry.domain.PcmSupplier;
import com.ruoyi.system.api.domain.*;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

/**
 * 我的待办模块
 */
public interface PcmAuditMapper {
    public List<PcmAudit> selectPcmAuditList(@Param("supplierId") Long supplierId);

    public PcmInquiryDemand selectPcmInquryDemandId(@Param("inquiryDemandNumber") String inquiryDemandNumber);

    public PcmSupplier selectPcmSupplier(@Param("supplierID2")Long supplierID2);

    public com.procurement.inquiry.domain.PcmInquiryDemand selectPcmInquiryDemandList(@Param("inquiryDemandNumber")String inquiryDemandNumber);

    public PcmSupplierQuotation selectSupplierQuotation(@Param("quotationID") Long quotationID);

    PcmSupplierQuotation selectSupplierQuotation2(@Param("inquiryDemandNumber") String inquiryDemandNumber,@Param("quotingSupplier")Long quotingSupplier,@Param("auditTableNumber")String auditTableNumber);

    int insertPcmQuotationProduct(PcmQuotationProduct pcmQuotationProduct);

    List<com.ruoyi.system.api.domain.PcmQuotationProduct> selectPcmQuotationProduct(@Param("quotationID1") Long quotationID1);

    PcmMaterialRecord selectPcmMaterialRecord(@Param("productNumber")String productNumber);

    int updatePcmQuotationProduct(PcmQuotationProduct pcmQuotationProduct);

    int updatePcmSupplierQuotation(PcmSupplierQuotation pcmSupplierQuotation);

    PcmSupplier selectPcmSupplier2(@Param("permission") Long permission);

    int updatePcmAudit(@Param("circulationStatus") Long circulationStatus, @Param("auditId")Long auditId);

    int insertAttach(@Param("attachmentName")String attachmentName,@Param("attachmentAddress")String attachmentAddress,@Param("quotationID")Long quotationID);
    int deleteAttach(@Param("quotationID")Long quotationID);

    List<SysFile> selectAttach(@Param("quotationID") Long quotationID);
    /**
     * 查询供应商供应样品管理
     *
     * @param supplierSampleManagementID 供应商供应样品管理主键
     * @return 供应商供应样品管理
     */
    public PcmSupplierSampleManagement selectPcmSupplierSampleManagementBySupplierSampleManagementID(Long supplierSampleManagementID);


    /**
     *查询供应商准入数据
     * @param srmID  srm_approvals主键
     * @return
     */
    public SrmApprovals selectSrmClaAll(Long srmID);
    /**
     * 查询采购申请
     *
     * @param purchaseRequestNumber 采购申请主键
     * @return 采购申请
     */
    public PcmPurchaseRequest selectPcmPurchaseRequestByPurchaseRequestNumber(String purchaseRequestNumber);

    public boolean updatePcmPurchaseRequest(PcmAudit pcmAudit);

    public boolean updateRequest(PcmPurchaseRequest purchaseRequest);

    public boolean updateApplicationDetail(String Number);

    PcmBiddingInviteTenders selInvitationInformation(Long middleId);

    //根据供应商参加的项目的主键id查询项目名称
    PcmInvitedSupplier selByInvitedSupplierId(Long invitedSupplierId);

    //查询评标待办的渲染内容
    Map<String,Object> selEvaluationContent(Long expertSupplierId);
    int updateAudit(@Param("AuditId") Long AuditId,@Param("supplierId") Long supplierId);
}
